<?php

define('IN_ECS', true);

require(dirname(__FILE__) . '/includes/init.php');

$act = !empty($_REQUEST['act']) ? $_REQUEST['act'] : 'list';
if($act == 'list'){
	$smarty->display('rg_html.htm');
}else{
	$message = isset($_REQUEST['message']) ? $_REQUEST['message'] : '';
	if(is_array($message)){
		$rg_message = implode('<br />', $message);
	}else{
		$rg_message = $message;
	}
	if($rg_message)
		sys_msg($rg_message);
	else
		sys_msg('操作失败');
}
?>